<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            display: inline-block;
        }
        .d2{
            display: inline-block;
        }
    </style>
</head>
<body>
    <form method="post" action="${pageContext.request.contextPath}/assets_add">
        <div class="d1">
           <p>
               <span>资产编码</span>
               <input type="text" name="accAssetCode" required="required" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span>资产名称</span>
               <input type="text" name="accAssetName"  required="required"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 建设方名称</span>
               <input type="text" name="constructorName"  required="required" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 规格</span>
               <input type="text" name="specifications" />
           </p>
           <p>
               <span>资产类别</span>
               <select name="assetClass"  required="required">
                   <c:forEach var="assetClass" items="${assetClass}" >
                       <option value="${assetClass.id}">${assetClass.typeName}</option>
                   </c:forEach>
               </select>
               <span style="color: red">*</span>
           </p>
            <p>
                <span>使用年限</span>
                <input type="text" name="serviceLife" required="required"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>使用状态</span>
                <select name="ssageStatus" required>
                    <option value="10">使用中</option>
                    <option value="11">未使用</option>
                    <option value="23">报废</option>
                    <option value="24">不需要</option>
                    <option value="25">租出</option>
                </select>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>开始使用日期</span>
                <input type="text" name="startDate" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>已用期数</span>
                <input type="text" name="periodUsed" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>数量</span>
                <input type="text" name="number" required/>
                <span style="color: red">*</span>
            </p>
        </div>
        <div class="d2">
            <p>
                <span>资产原值</span>
                <input type="text" name="originalValueOfAssets" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>累计折旧</span>
                <input type="text" name="accumulatedDepreciation" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span> 净值</span>
                <input type="text" name="netWorth" required/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>预计使用月数</span>
                <input type="text" name="expectedServiceMonths" required/>
                <span style="color: red">*</span>
            </p>
        </div>
        <div>
            <button type="submit">增加</button>
        </div>
    </form>
</body>
</html>
